/* eslint-disable */
// @ts-ignore
import request from '@/utils/request';
import { CustomRequestOptions } from '@/interceptors/request';

import * as API from './types';

/** 获取评论 GET /tourism/client/c/spot/getcomment */
export async function getCommentUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.getCommentUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultPagePageComment_>(
    '/tourism/client/c/spot/getcomment',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 根据地理位置 GET /tourism/client/c/spot/getgeospot */
export async function getGeoSpotUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.getGeoSpotUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultListSpot_>(
    '/tourism/client/c/spot/getgeospot',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 获取历史动态 GET /tourism/client/c/spot/getspotheritage */
export async function getSpotHeritageUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.getSpotHeritageUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultListBizHistory_>(
    '/tourism/client/c/spot/getspotheritage',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 获取景点信息 GET /tourism/client/c/spot/getspotinfo */
export async function getSpotInfoUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.getSpotInfoUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultSpot_>('/tourism/client/c/spot/getspotinfo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取门票 GET /tourism/client/c/spot/getticket */
export async function getTicketUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.getTicketUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultListTicket_>(
    '/tourism/client/c/spot/getticket',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 获取景点 GET /tourism/client/c/spot/page */
export async function pageUsingGet2({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.pageUsingGET2Params;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultPageSpot_>('/tourism/client/c/spot/page', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
